//
// Created by jinbang.li on 2023/8/6.
//

#ifndef OPENPLAYDEMO_OPPLAYERBUILDER_H
#define OPENPLAYDEMO_OPPLAYERBUILDER_H

#include "IOpPlayerBuilder.h"

class OpPlayerBuilder: public IOpPlayerBuilder{
public:
    static void initHard(void *vm);
    static OpPlayerBuilder *get();
protected:
    OpPlayerBuilder(){};
    virtual IOpDemux* createDemux() ;
    virtual IOpDecode* createDecode() ;
    virtual IOpResample* createResample() ;
    virtual IOpAudioPlay* createAudioPlay() ;
    virtual IOpVideoView* createVideoView() ;
    virtual IOpPlayer* createPlayer(unsigned char index = 0);
};


#endif //OPENPLAYDEMO_OPPLAYERBUILDER_H
